package net.uhuijia.sys.area.service;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.enums.AreaLevel;
import net.uhuijia.vo.sys.area.AreaVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import net.uhuijia.appbase.service.CrudService;
import net.uhuijia.sys.area.persistence.dao.SysAreaDao;
import net.uhuijia.sys.area.persistence.model.SysArea;
import net.uhuijia.sys.area.persistence.model.SysAreaExample;

import java.util.List;


@Service
@Transactional
public interface SysAreaService
     extends BaseService<SysArea,SysAreaExample> {
    /**
     * @Author xzj
     * @Description //根据parentId和城市等级查询城市列表
     * @Date  2018/10/8
     * @Param
     * @return
     **/
    List<SysArea> findAreaByParentIdAndAreaLevel(String parentId, AreaLevel areaLevel);

    /**
     * @Author xzj
     * @Description //根据parentId和城市等级查询城市列表
     * @Date  2018/10/8
     * @Param
     * @return
     **/
    List<AreaVo> findAreaVoByParentIdAndAreaLevel(String parentId, AreaLevel areaLevel);


}